<template>
    <div class="generalize">
        <div class="con" v-if="items.unitAdmin">
            <div class="title">
                <span>企业推广</span>
            </div>
            <div class="box">
                <img :src="items.unitQRCode">
                <p>{{items.unitPopular}}</p>
            </div>
        </div>
        <div class="con">
            <div class="title">
                <span>个人推广</span>
            </div>
            <div class="box">
                <img :src="items.personalQRCode">
                <p>{{items.myPopular}}</p>
            </div>
        </div>
    </div>
</template>
<script>
    import AjaxHttp from '../../js/ajaxHttp.js';
    export default{
        data(){
            return {
                items: ''
            }
        },
        created(){
            const _this = this;
            AjaxHttp.getHttp('fxsys/popularization/index').then(function (response) {
                console.log(response);
                _this.items = response;
            });
        }
    }
</script>